<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS继承性</title>
    <style>
        div {
            color: pink;
            font-size: 12px;
        }
    </style>
</head>

<body>
    <div>
        <p>中秋快乐，国庆假期</p>
    </div>
</body>

</html>